sudo chown -R _mysql:mysql /usr/local/var/mysql
sudo mysql.server start
> ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
>
> service mysql start or service mysql start
sudo apt-get install mysql-server
mysql -h 127.0.0.1 -P 3306 -u root -p <database>